import { RoutesAlias } from '@/router/routesAlias'
import { AppRouteRecord } from '@/types/router'

const meta = {}

const pre = 'nengYuanGuanLi/dianNengFenXi-'

export default {
  path: '/nengYuanGuanLi/dianNengFenXi',
  name: 'dianNengFenXi',
  redirect: {
    name: `${pre}/yongDianPanCun`
  },
  meta: { ...meta, title: '电能分析' },
  component: RoutesAlias.Home,
  children: [
    {
      path: 'yongDianPanCun',
      name: '24100',
      meta: {
        ...meta,
        title: '用电盘存'
      }
      // component: () => import('@/pages/nengYuanGuanLi/dianNengFenXi/yongDianPanCun')
    },
    {
      path: 'pingZhongTongJi',
      name: '24200',
      meta: {
        ...meta,
        title: '品种统计'
      }
      // component: () => import('@/pages/nengYuanGuanLi/dianNengFenXi/pingZhongTongJi')
    },
    {
      path: 'jiTaiTongJi',
      name: '24300',
      meta: {
        ...meta,
        title: '机台统计'
      }
      // component: () => import('@/pages/nengYuanGuanLi/dianNengFenXi/jiTaiTongJi')
    },
    {
      path: 'banCiTongJi',
      name: '24400',
      meta: {
        ...meta,
        title: '班次统计'
      }
      // component: () => import('@/pages/nengYuanGuanLi/dianNengFenXi/banCiTongJi')
    },
    {
      path: 'fenPingGuTongJi',
      name: '24500',
      meta: {
        ...meta,
        title: '峰平谷统计'
      }
      // component: () => import('@/pages/nengYuanGuanLi/dianNengFenXi/fenPingGuTongJi')
    }
  ]
} as AppRouteRecord
